<script>
Plex.Lib.JS.load("Util.File_Selector");
var file_browser_<?=$name;?> = new Plex.Util.File_Selector("Advertisment Selector");
file_browser_<?=$name;?>.onselect = function(image)
{	
	$('<?=$name;?>_hidden').value=image.file_content_ID;
	$('<?=$name;?>_title').setText("File #"+image.file_content_ID);
	
	
	
	
	file_browser_<?=$name;?>.close();
}

</script>

<tr>
	<td width="130"><?= $title; ?>:</td>
	<td>
		<span id="<?= $name; ?>_title"><?= $value?$value:'No File Selected' ?></span>
		<input style="width:98%;" size="120" type="hidden" id='<?=$name;?>_hidden' value="<?=$value;?>" name="<?= $name; ?>" />
		<input type="button" onclick="file_browser_<?=$name;?>.open()" value="Browse..." />
	</td>
</tr>

<? if($error): ?>
	<tr>
		<td></td>
		<td><img src='/img/silk/exclamation.png' style="vertical-align:top">&nbsp;&nbsp;<span style='color:Black; font-weight:600; font-size:12px; font-family:Helvetica'><?= $error; ?></span></td>
	</tr>
<? endif; ?>